package routers

import (
	"github.com/gin-gonic/gin"
	"gormstu/controller"
)

func MultiToMultiRouters(r *gin.Engine) {
	mtm := r.Group("/mTom")
	{
		mtm.GET("/studentLesson", controller.MultiToMultiController{}.SearchStudentAndLesson)
		mtm.GET("/singleStudent", controller.MultiToMultiController{}.SearchSingleStudentLesson)
		mtm.GET("/LessonStudent", controller.MultiToMultiController{}.SearchLessonStudent)
		mtm.GET("/GolangStudent", controller.MultiToMultiController{}.SearchGolangStudent)
		mtm.GET("/ConditionSearch", controller.MultiToMultiController{}.SearchCondition)
		mtm.GET("/RemoveStudent", controller.MultiToMultiController{}.SearchLessonStudentRemoveStudent)
		mtm.GET("/SearchLessonOrderDesc", controller.MultiToMultiController{}.SearchLessonOrderDesc)
	}
}
